
package com.fs.ibox_h.vo;

/**
 * <p>Title: ${file_name}</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2020</p>
 * <p>Company: www.baidudu.com</p>
 *
 * @author suke
 * @version 1.0
 * @date ${date}
 */
public enum ResultEnums {

    OK(200, "请求成功"),
    CREATED(201, "创建成功"),
    DELETED(204, "删除成功"),
    UPDATED(205, "修改成功"),
    BAD_REQUEST(400, "请求的地址不存在或者包含不支持的参数"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"被禁止访问"),
    NOT_FOUND(404,"请求的资源不存在"),
    LOGIN_FAIL(414,"服务器错误"),
    CHECK_FAIL(414,"验证码错误"),
    UNPROCESABLE_ENTITY(422,"[POST/PUT/PATCH] 当创建一个对象时，发生一个验证错误"),
    INTERNAL_SERVER_ERROR(500,"内部错误"),
    FAIL_ADMIN(4000,"账号名或密码错误"),
    UPDATE(2001,"更新成功");

    private int status;
    private String msg;

    ResultEnums(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}